package cn.ilikes.tools.nosql.jpa.configs.envs.pus;

import java.util.Properties;

import org.slf4j.Logger;

import cn.ilikes.tools.logs.Loggerfactory;
import cn.ilikes.tools.nosql.jpa.JPASQLPersistenUnitEnv;
import cn.ilikes.tools.nosql.jpa.configs.envs.JPASQLConfigurationException;
import cn.ilikes.tools.nosql.jpa.metadatas.DefultEntityMetaDataFactory;
import cn.ilikes.tools.nosql.jpa.metadatas.IEntityMetaDataFactory;

public class PersistenceIEntityMetaDataFactoryConfigure implements IConfigure {

	private static Logger logger = Loggerfactory.instance(PersistenceIEntityMetaDataFactoryConfigure.class);

	public PersistenceIEntityMetaDataFactoryConfigure(Properties configs) {
		Loggerfactory.info(logger, "load Persistence EntityMeta DataFactory  Configure ......");
	}

	@Override
	public void config(String persistenUnitName, JPASQLPersistenUnitEnv hbasePersistenUnitEnv) throws JPASQLConfigurationException {
		Loggerfactory.info(logger, "start   process  persistence unit entity table ;  persistenceUnitsName  : " + persistenUnitName);
		IEntityMetaDataFactory metaDataManagerFactory = new DefultEntityMetaDataFactory();
		hbasePersistenUnitEnv.setMetaDataManagerFactory(metaDataManagerFactory);

	}

}
